Project(QtTutorial1)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

FILE(GLOB_RECURSE QtTutorial1_moc_srcs ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
FILE(GLOB_RECURSE QtTutorial1_moc_hdrs ${CMAKE_CURRENT_SOURCE_DIR}/*.h)

QT4_WRAP_CPP(QtTutorial1_moc_srcs ${QtTutorial1_moc_hdrs})

ADD_LIBRARY(QtTutorial1 SHARED ${QtTutorial1_moc_srcs} ${QtTutorial1_moc_hdrs})

TARGET_LINK_LIBRARIES(QtTutorial1 ${APP_LIBRARIES_WINDOWS} debug Blobz_d.lib optimized Blobz.lib ${QT_LIBRARIES})

SET_TARGET_PROPERTIES(QtTutorial1 PROPERTIES SUFFIX ".nui")

IF(WIN32)
	INSTALL(TARGETS QtTutorial1 RUNTIME DESTINATION ${NUI_APP_DIR}/QtTutorial1 )
ELSE(WIN32)
	INSTALL(TARGETS QtTutorial1 LIBRARY DESTINATION ${NUI_APP_DIR}/QtTutorial1 )
ENDIF(WIN32)
 
FILE(GLOB SOURCE_GROUP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Utils/*)
SOURCE_GROUP(Utils FILES ${SOURCE_GROUP_FILES})

SOURCE_GROUP(AutoGen REGULAR_EXPRESSION ${CMAKE_CURRENT_BINARY_DIR}.*\\.cxx$)
  